/*
 * @描述:分组管理接口
 * @作者: 约訂
 * @Date: 2024-07-15 10:49:39
 * @LastEditTime: 2024-07-17 09:53:45
 * @修改人员: 约訂
 */
import request from "@/utils/request";

// 新增分组
export function addGrouping(data) {
  return request({
    url: "Group/Create",
    method: "post",
    data,
  });
}
/**查询分组 */
export function getGrouping(data) {
  return request({
    url: "Group/Query",
    method: "post",
    data,
  });
}
/**编辑分组 */
export function editGrouping(data) {
  return request({
    url: "Group/Update",
    method: "post",
    data,
  });
}
/**查询单个分组 */
export function getOneGrouping(id) {
  return request({
    url: "Group/Get?id=" + id,
    method: "get",
  });
}
/**删除单个分组 */
export function delOneGrouping(id) {
  return request({
    url: "Group/Delete?id=" + id,
    method: "get",
  });
}
export default {
  addGrouping,
  getGrouping,
  editGrouping,
  getOneGrouping,
  delOneGrouping,
};
